import {EChartsCoreOption} from "echarts";

export interface MetaOptions {
  title: string
  endpoint?: string
  datetime: {
    format: string
    progress: {
      timeout: number
    }
  }
  theme: {
    rows: string[]
    gap: number
  }
  translate: {
    [key: string]: string
  }
  color: string[]
}

export interface LayoutOptions {
  span?: number
  slot?: string
  height?: string
  children?: LayoutOptions[]
}

export interface ChartOptions {
  slot: string
  unit: string
  type: string
  name: {
    [key: string]: any
  }
  keymap: {
    [key: string]: string
  }
  query: {
    [key: string]: string
  }
  chart: {
    mode: string
    chartOption: EChartsCoreOption
  }
}